Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phase 2 of GW development #1117

Open
wants to merge 10 commits into
base: cam_development
Choose a base branch
from

Conversation

cacraigucar
Copy link
Collaborator

Closes #1115

@cacraigucar cacraigucar added enhancement New feature or request answer changing answer changing tag CoupledEval3 chill labels Aug 5, 2024
@cacraigucar cacraigucar marked this pull request as draft August 5, 2024 16:09
@cacraigucar cacraigucar marked this pull request as ready for review January 27, 2025 21:38
Copy link
Collaborator Author

@cacraigucar cacraigucar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might have a few more changes, but submitting it for now

Comment on lines +136 to +137
!!$OMP PARALLEL NUM_THREADS(horz_num_threads), DEFAULT(SHARED), PRIVATE(nets,nete,hybrid,ie,ncols,frontgf_thr,frontga_thr)
! hybrid = config_thread_region(par,'horizontal')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have these been tested?




!++jtb (12/31/24)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to remove these comments?

@@ -3906,6 +3909,10 @@ if ($do_gw_rdg_beta) {
add_default($nl, 'gw_prndl');
}

if ($do_gw_rdg_resid) {
add_default($nl, 'effgw_rdg_resid', 'val'=>'1.0D0');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be consistent and set this via namelist_defaults?

Comment on lines +1326 to +1328
<entry id="use_gw_rdg_resid" type="logical" category="gw_drag"
group="gw_drag_nl" valid_values="" >
JULIO - need to add comment
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to describe this

Comment on lines +379 to +384
!++ jtb (12/24/2024)
! This is confusing. Not sure when if ever this was needed.
! Check if fcrit2 was set.
!call shr_assert(fcrit2 /= unset_r8, &
! "gw_drag_readnl: fcrit2 must be set via the namelist."// &
! errMsg(__FILE__, __LINE__))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this now?

Comment on lines +164 to +165
end if
if ( source_type==2 ) then
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could else if to save checking when source_type==1

@@ -419,15 +432,20 @@ pure function index_of_nearest(x, grid) result(idx)
end function index_of_nearest

!!!!!!!!!!!!!!!!!!!!!!!!!!!
pure function shcu_flux_src (xpwp_shcu , ncol, pverx, alpha_gw_movmtn ) result(xpwp_src)
subroutine shcu_flux_src (xpwp_shcu , ncol, pverx, alpha_gw_movmtn, xpwp_src, steering_level, launch_level ) !! result(xpwp_src)
!!! use gw_common, only: pver
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?


!!!!!!!!!!!!!!!!!!!!!!!!!!!
subroutine vorticity_flux_src (vorticity , ncol, pverx, alpha_gw_movmtn, vort_src, steering_level, launch_level ) !! result(xpwp_src)
!!! use gw_common, only: pver
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

real(r8) :: scale_factor
integer :: k, nlayers

steering_level = pverx - 20 !++ ?????
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment - remove?

@@ -265,6 +299,22 @@ subroutine d_p_coupling(phys_state, phys_tend, pbuf2d, dyn_out)
deallocate(frontgf_phys)
deallocate(frontga_phys)
end if
!++jtb 01/20/25
if (use_gw_movmtn_pbl) then
!$omp parallel do num_threads(max_num_threads) private (lchnk, ncols, icol, ilyr, pbuf_chnk, pbuf_vort4gw)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMP tested?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer changing answer changing tag chill CoupledEval3 enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants